package com.alarmgame.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

import com.alarmgame.alert.AlarmGameAlert;

public class AlarmGameService extends Service {

	public void onCreate() {
		//Toast.makeText(this, "AlarmGameService.onCreate()", Toast.LENGTH_LONG).show();
	}

	public IBinder onBind(Intent intent) {
		return null;
	}

	public void onDestroy() {
		super.onDestroy();
		//Toast.makeText(this, "AlarmGameService.onDestroy()", Toast.LENGTH_LONG).show();
	}	

	public void onStart(Intent intent, int startId) {
		super.onStart(intent, startId);		
		//Toast.makeText(this, "AlarmGameService.onStart()", Toast.LENGTH_LONG).show();
		Intent alertIntent = new Intent();
		alertIntent.setClass(this, AlarmGameAlert.class);		
		alertIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		startActivity(alertIntent);
	}
}